package com.ll.beautymall.bean;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.io.Serializable;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/10/24.
 */
public class Brand implements Serializable{
    /**
     * logo_url : http://gouwu.cdn.yuike.com/data/img/457465/allbuy_brand/6d921c5ff3ca9485c73f84804043c797.jpg
     * mobile_cps_url : https://list.tmall.com/search_product.htm?q=%E6%97%B6%E5%B0%9A%E5%8D%B0%E8%AE%B0%E6%97%97%E8%88%B0%E5%BA%97
     * nick : 时尚印记旗舰店
     * pc_cps_url : http://s.click.taobao.com/t?e=m%3D2%26s%3DKhYnTRwxucQcQipKwQzePCperVdZeJvipRe%2F8jaAHci5VBFTL4hn2R8%2Ft4eHaPZhHqN3CrDUeQarJ52n4WeiiOhSfP286jI1Qkx7vYK1t6B7l7txan36TMPEqMZNH0E0nsuZCKOWWOszuTGl041QAtwntIxuGYIW6SvHPiQ4k3mx379%2FgWHD1u5GSWx8NGel8ugMwwktg56tAJxDCmSkqsYMXU3NNCg%2F
     * title : 时尚印记旗舰店
     */

    private String logo_url;
    private String mobile_cps_url;
    private String nick;
    private String pc_cps_url;
    private String title;

    public static Brand objectFromData(String str) {

        return new Gson().fromJson(str, Brand.class);
    }

    public static List<Brand> arrayBrandFromData(String str) {

        Type listType = new TypeToken<ArrayList<Brand>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public String getLogo_url() {
        return logo_url;
    }

    public void setLogo_url(String logo_url) {
        this.logo_url = logo_url;
    }

    public String getMobile_cps_url() {
        return mobile_cps_url;
    }

    public void setMobile_cps_url(String mobile_cps_url) {
        this.mobile_cps_url = mobile_cps_url;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getPc_cps_url() {
        return pc_cps_url;
    }

    public void setPc_cps_url(String pc_cps_url) {
        this.pc_cps_url = pc_cps_url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
